import Vue from 'vue'
import Router from 'vue-router'



Vue.use(Router)

// 内部路由，下面的routes用于循环展示在路由列表页
const innerRoutes = [
  {
    path: '/',
    redirect: '/inWork'
  },
]

export const routes = [
  // 新生入班
  {
    path: '/inWork',
    name: 'inWork',
    redirect: '/login',
    component: () => import('./views/inWork'),
    meta: { title: '快速入职' },
    children: [
      {
        path: '/login',
        name: 'login',
        component: () => import('./views/inWork/login'),
        meta: { title: '登陆' },
      },
      {
        path: '/personInfo',
        name: 'PersonInfo',
        component: () => import('./views/inWork/personInfo'),
        meta: { title: '入职信息' },
      },
      {
        path: '/bankCard',
        name: 'BankCard',
        component: () => import('./views/inWork/bankCard'),
        meta: { title: '银行卡信息' },
      },
      // {
      //   path: '/subjoinInfo',
      //   name: 'SubjoinInfo',
      //   component: () => import('./views/inWork/subjoinInfo'),
      //   meta: { title: '银行卡信息' },
      // },
      {
        path: '/success',
        name: 'Success',
        component: () => import('./views/inWork/success'),
        meta: { title: '操作成功' },
      },
    ]
  },

]
export default new Router({
  routes: innerRoutes.concat(routes)
})
